<template>
    <div class="action" :class="{['action-hide']:this.model.locate==='inline'}">
        <Button class="action-button" :icon="model.icon" type="primary" @click="actionTrigger">
            {{model.name}}
        </Button>
        <div class="action-modal-box" v-if="isLoad">
            <Import-modal :open.sync="modalShow"></Import-modal>
        </div>
    </div>
</template>
<script>
import modalActionBase from '../moduleAction'
import ImportModal from './modal'
import moduleStore from './store'
export default {
    moduleStore,
    extends: modalActionBase,
    methods: {
        actionSubmit() {
            this.$Notice.success({
                title: '文件上传，正在进行导入'
            });
            this.$owner.update()
            this.modalClose()
        }
    },
    created() {
    },
    components: {
        ImportModal
    }
}
</script>
